﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Content.Links.Edit" Title="编辑链接" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" src="/Cellula_client/ImagePreview/CJL.0.1.min.js"></script>
    <script type="text/javascript" src="/Cellula_client/ImagePreview/ImagePreview.js"></script>
    <script type="text/javascript">
        var imgPreview = null;
        function PageOnLoad(){
            imgPreview = new ImagePreview( $$(fixId("file_Upload")), $$(fixId("UploadPriviewer")), {
	            maxWidth: 800, maxHeight: 800, action: ""
            });
            imgPreview.file.onchange = function(){ imgPreview.preview(); };
       }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
编辑链接
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <div class="action_bar">
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Content/links/List.aspx')" value="取消" />
    </div>
    <fieldset>
        <legend>新闻信息</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">标题：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Title" Width="400px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">时间戳：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_StampTime"  onclick="jskitDateSelector.setMode('dt');jskitDateSelector.open(this,event)"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">链接：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Url"  Width="400px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    图片：
                </td>
                <td class="edit_form_item_content">
                    <input type="file" runat="server" id="file_Upload" style="width:400px" />
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <asp:Image runat="server" ID="UploadPriviewer" ImageUrl="/cellula_client/Controls/images/blank.png" AlternateText="" BorderWidth="0" />
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
